#include "../interface/I_api_Blob.h"

#include <stdlib.h>

I_api_Blob::I_api_Blob(int nSize) 
{ 
	m_size = nSize;
	m_hptr = (unsigned char *) malloc(m_size);
}

I_api_Blob::I_api_Blob() 
{ 
	m_size = 0;
	m_hptr = NULL;
}

I_api_Blob::~I_api_Blob() 
{ 
	free(m_hptr); 
}

void	*	I_api_Blob::GetBufferPointer() { return m_hptr; }
int			I_api_Blob::GetBufferSize() { return m_size; }